import request from '@/utils/request'

// 获取售货机类型接口
export const getEquipmentType = data => request.get('/api/vm-service/vmType/search', {
  params: { ...data }
})

// 获取售货机货道详情列表接口

// 获取售货机列表
export const getEquipmentList = data => request.get('/api/vm-service/vm/search', {
  params: { ...data }
})

// 新增售货机类型
export const addEquipments = data => request.post('/api/vm-service/vmType', data)

// 图片上传接口
export const filesUpload = data => request.post('/api/vm-service/sku/fileUpload', data)

// 获取售货机货道详情
export const getChannelList = data => request.get(`/api/vm-service/channel/channelList/${data}`)
